import React,{ useState} from "react";
import Header from "@/components/Header";
export default function App(){
  const [count,setCount] =useState(0)
  const [num,setNum]=useState(0)

  return (
    <div>
      <h1>App</h1>
      <p>count:{count}</p>
      <p>num:{num}</p>
      <button onClick={()=>{setCount(x=>x+1)}}>累加count</button>
      <button onClick={()=>{setNum(x=>x+1)}}>累加num</button>
      <hr />
      <Header count={count}></Header>
    </div>
  )

}